package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书信息对象 tb_bookinfo
 * 
 * @author ruoyi
 * @date 2022-06-16
 */
public class TbBookinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 书籍id */
    private Long bookId;

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    /** 书名 */
    @Excel(name = "书名")
    private String bookName;

    /** 图书类别id */
    @Excel(name = "图书类别id")
    private Long categoryId;

    /** 图书类别 */
    @Excel(name = "图书类别")
    private String categoryName;

    /** 作者 */
    @Excel(name = "作者")
    private String bookAuthor;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal orPrice;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal rePrice;

    /** 简介 */
    @Excel(name = "简介")
    private String brIntroduction;

    /** 出版时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pdTime;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 封面 */
    @Excel(name = "封面")
    private String img;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDel;



    public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setBookAuthor(String bookAuthor) 
    {
        this.bookAuthor = bookAuthor;
    }

    public String getBookAuthor() 
    {
        return bookAuthor;
    }
    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }
    public void setOrPrice(BigDecimal orPrice) 
    {
        this.orPrice = orPrice;
    }

    public BigDecimal getOrPrice() 
    {
        return orPrice;
    }
    public void setRePrice(BigDecimal rePrice) 
    {
        this.rePrice = rePrice;
    }

    public BigDecimal getRePrice() 
    {
        return rePrice;
    }
    public void setBrIntroduction(String brIntroduction) 
    {
        this.brIntroduction = brIntroduction;
    }

    public String getBrIntroduction() 
    {
        return brIntroduction;
    }
    public void setPdTime(Date pdTime) 
    {
        this.pdTime = pdTime;
    }

    public Date getPdTime() 
    {
        return pdTime;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("bookName", getBookName())
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("bookAuthor", getBookAuthor())
            .append("publisher", getPublisher())
            .append("orPrice", getOrPrice())
            .append("rePrice", getRePrice())
            .append("brIntroduction", getBrIntroduction())
            .append("pdTime", getPdTime())
            .append("stock", getStock())
            .append("img", getImg())
            .append("isDel", getIsDel())
            .toString();
    }
}
